package com.summer.content.feignClient;


import com.summer.content.config.MultipartSupportConfig;
import com.summer.pojo.CoursePublish;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@FeignClient(value = "es-api", configuration = MultipartSupportConfig.class, fallbackFactory = EsClientFallbackFactory.class)
public interface EsClient {

    @PostMapping("/course/add")
    boolean insert2es(@RequestBody CoursePublish coursePublish);

}
